App\Billingo\WooCommerce\Service\Billingo_Document_Generator D

Total Complexity 219
Dependencies 20
Dependents 2
Total lines 1,244
Lines of code 822
Logical lines of code 481
Comment lines 165
Methods 33
Properties 5

Methods 33

Method Rating Maintainability Complexity Lines of code
createProductItems()
D
16
63 244
getFeeVatCode()
A
45 14 40
applyCouponDiscounts()
A
42 13 47
collectDocumentData()
A
42 12 46
applyItemDiscounts()
A
44 9 44
findOrCreatePartner()
A
44 8 44
getCurrencyRate()
A
47 8 35
isCouponForShipping()
A
53 8 23
getNote()
A
53 8 22
getShippingVatCode()
A
56 8 18
getCalculatedDateForItem()
S
52 7 22
make()
S
51 6 24
overrideTaxOnSingleItem()
S
52 5 25
findPartner()
S
54 5 23
selectCallback()
S
57 4 15
getPartnerName()
S
62 4 11
resolvePaymentMethod()
S
57 3 18
resolvePaidType()
S
61 3 12
get()
S
69 3 7
getVatRateFromCode()
S
70 3 5
isForbidden()
S
66 3 8
overrideTax()
S
65 3 10
hasEraseCode()
S
64 3 9
getInvoice()
S
65 2 9
getProforma()
S
65 2 9
getProductSku()
S
71 2 6
getShippingCouponVatCode()
S
67 2 8
getRegularPriceFromItemMeta()
S
64 2 9
getSalePriceFromItemMeta()
S
64 2 9
__construct()
S
72 1 5
getDraft()
S
80 1 3
isItemDiscountEnabled()
S
79 1 3
shouldSendEmail()
S
64 1 9